<template>
  <div class="hello">
    <button @click="test">{{message}}</button>
  </div>
</template>

<script>
export default {
  name: 'hello',
  data(){
    return{
      message:test
    }
  },
  methods:{
    test:function(){
      this.$http.post('/user',{username:hrc,password:123}).then(res=>{this.setdata({message:res.data})})
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
